package mapper;



import entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);


    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    User selectByName(String username);

    User selectByNameAndPassword(@Param("username") String username,@Param("password") String password);


    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}